const initialState = [{ name: '张三' }]

export default (state = initialState, { type, payload }) => {
  switch (type) {

    case 'addPerson':
      return [...state, payload]

    default:
      return state
  }
}
